package team.first.movieapiv1pro.domain;

import lombok.*;
import lombok.experimental.Accessors;
import net.sf.jsqlparser.expression.TimeKeyExpression;

/**
 * @Author: HAPPY
 * @Project_name: project
 * @Package_name: team.first.movieapiv1pro.domain
 * @Date: 2021/12/24 16:04
 * @Description:
 */
@Setter
@Getter
@ToString
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class Token {
    /**
     * 用户名
     */
    private String userEmail;

    /**
     * token值
     */
    private String tokenValue;

    /**
     * 有效期，单位：秒，默认值30分钟
     */
    private long ttl = 30 * 60L;

    /**
     * 令牌类型
     */
    private TokenType tokenType;


}

